//用户登录接口携带参数的ts类型
export interface loginForm {
    username: string
    password: string
}

export interface ResponseData {
    code: number
    message: string
    ok: boolean
}

interface dataType {
    token: string,
    user: string
}
export interface loginResponseData {
    code: number,
    message: string,
    data: dataType
}
interface userInfo {
    userId: number,
    avatar: string,
    username: string,
    password: string,
    desc: string,
    roles: string,
    buttons: string[],
    routes: string[],
    token: string
}
interface user {
    checkUser: userInfo,
}
export interface userResponseData {
    code: number,
    message: string,
    data: user
}
